package ru.amse.tsyganov.jumleditor.graphicaleditor;

import ru.amse.tsyganov.jumleditor.model.ForkDecision;
import ru.amse.tsyganov.jumleditor.model.State;
import ru.amse.tsyganov.jumleditor.view.ForkDecisionView;
import ru.amse.tsyganov.jumleditor.view.StateView;

/*package*/ class AddForkDecisionMode extends AddStateMode {

	public AddForkDecisionMode(GraphicalEditor graphicalEditor) {
		super(graphicalEditor);
	}

	@Override
	public StateView<? extends State> createNewState() {
		ForkDecision forkDecision = new ForkDecision();
		ForkDecisionView<? extends ForkDecision> newDecision = 
			new ForkDecisionView<ForkDecision>(forkDecision, getEditor().getActivityGraphView());
		
		return newDecision;
	}

}
